package com.ly.heart.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ly.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * 勘测图纸对象 erp_survey_draw_info
 * @author wutao
 * @date 2024-05-29
 */
@TableName ("erp_survey_draw_info")
@ApiModel (value = "erp_survey_draw_info对象", description = "勘测图纸")
@Data
public class SurveyDrawEntity extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId (value = "id", type = IdType.INPUT)
    private String id;

    /**
     * 勘测报告Id
     */
    @ApiModelProperty ("勘测报告Id")
    @TableField ("survey_report_id")
    @Excel (name = "勘测报告Id")
    private String surveyReportId;

    /**
     * 是否可用
     */
    @ApiModelProperty ("是否可用")
    @TableField ("is_used")
    @Excel (name = "是否可用")
    private Integer isUsed;

    @TableField(exist = false)
    private List<FileEntity> fileEntities;

    @Override
    public String toString () {
        return new ToStringBuilder ( this, ToStringStyle.MULTI_LINE_STYLE )
                .append ( "id", getId () )
                .append ( "surveyReportId", getSurveyReportId () )
                .append ( "createBy", getCreateBy () )
                .append ( "createTime", getCreateTime () )
                .append ( "updateTime", getUpdateTime () )
                .append ( "isUsed", getIsUsed () )
                .toString ();
    }
}
